import {BaseUrl} from "../constant/constant";
import {ApiFetch} from "../api/apiHandler";

class BasketballModel {

    constructor() {
        this.url = BaseUrl
    }

    live(params) {
        let end = this.url + 'getlanqiuzhibolist'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    switchLive(params) {
        let end = this.url + 'setlanqiuzhiboyuan'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    hot(params) {
        let end = this.url + 'gethotgame'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

    setHot(params) {
        params.Id = 2
        let end = this.url + 'sethotgame'
        let req = new ApiFetch(end)
        return req.fetch(params)
    }

}

export default BasketballModel
